<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>秒借贷后台管理平台</title>
  <link rel="shortcut icon" type="image/x-icon" href="http://image1.ikebohui.com/FgqfqJbvu2ZP758qhj_6_7bO7LCt?imageView2/2/w/30/h/30/q/10" />
</head>
<body>
<!--注意height属性-->
<div id="root" style="height:100%;"></div>
</body>
<script type="application/javascript">
    var protocol="http://";
    var hostname=window.location.hostname;
    var port=3008;
    var baseSrc=protocol+hostname+":"+port;

    function isDebug() {
        var url = window.location.hash;
        return (url.indexOf("debug")>0);
    }

    function require(src) {
        var hm = document.createElement("script");
        if(src.indexOf(".min.") >= 0)
        {
            hm.src = baseSrc+src;
        }
        else
        {
            hm.src = baseSrc+src;
        }
        //var s = document.getElementsByTagName("script")[0];
        document.body.appendChild(hm);
    }

    if(isDebug())
    {
        port=3008;
        baseSrc=protocol+hostname+":"+port;
        require("/webpack-dev-server.js");
        require("/common.js");
        setTimeout(function(){require("/bundle.js");},800);
            
    } else
    {
        port=3000;
        baseSrc=protocol+hostname+":"+port;
        require("/common.min.js");
        setTimeout(function(){require("/bundle.min.js");},800);
        // require("/bundle.min.js");
    }
</script>
<!--<script src="/webpack-dev-server.js"></script>
<script src="/common1.js"></script>
<script src="/bundle.js"></script>-->
</html>
